package org.example.bao1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("schooldx1")
public class school {
    @Value("北京大学")
    private String name;
    @Value("12")
    private  int bianhao;

    @Override
    public String toString() {
        return "school{" +
                "name='" + name + '\'' +
                ", bianhao=" + bianhao +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBianhao() {
        return bianhao;
    }

    public void setBianhao(int bianhao) {
        this.bianhao = bianhao;
    }
}
